package com.zmy.xcx.controller;
import com.zmy.xcx.common.convention.result.Result;
import com.zmy.xcx.common.convention.result.Results;
import com.zmy.xcx.dao.entity.MildSymptom;
import com.zmy.xcx.service.MildSymptomService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 临床表现控制层
 */
@RestController
@RequiredArgsConstructor
public class MildSymptomController {
    private final MildSymptomService mildSymptomService;

    /**
     *根据id获得轻症症状
     * @param id
     * @return MildSymptom
     */
    @GetMapping("/MildSymptom/{id}")
    public Result<MildSymptom> getMildSymptom(@PathVariable("id") String id) {
        return Results.success(mildSymptomService.getMildSymptom(id));
    }

}
